# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-pycryptodome
pkgver=3.9.8
pkgrel=0
pkgdesc="Self-contained cryptographic library"
url="https://www.pycryptodome.org"
arch="all"
license="BSD-2-Clause Unlicense"
makedepends="python3-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v$pkgver.tar.gz"
builddir="$srcdir"/pycryptodome-$pkgver

replaces="py-pycryptodome py3-crypto" # Backwards compatibility
provides="py-pycryptodome=$pkgver-r$pkgrel py3-crypto=$pkgrel-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py --quiet build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
}

sha512sums="2852ef8c51ca066a9877268acfad2da502f4399e9d3556b25bbcc15882071ee6e612d285ee5ab43f59d5c964930cebb2272337027f6242226e9965e6348dfd74  py3-pycryptodome-3.9.8.tar.gz"
